package demo1;

public class Cat extends Animal{
    public void mew(){
        System.out.println( super.name + "喵喵叫...");
    }
static{
    System.out.println("执行了子类的静态代码块");
}
    {
        System.out.println("执行了构造代码块");
    }
    public Cat(String name, int age) {
        super(name, age);
        System.out.println("执行了子类的构造方法");
    }
}
